﻿namespace MxWeiXinPF.Common.log
{
    public class CustomLayout : log4net.Layout.PatternLayout
    {
        public CustomLayout()
        {
            this.AddConverter("userid", typeof(useridPatternConverter));
            this.AddConverter("platName", typeof(platNamePatternConverter));
            this.AddConverter("module", typeof(modulePatternConverter));
            this.AddConverter("operating", typeof(operatingPatternConverter));
            this.AddConverter("flgValue", typeof(flgValuePatternConverter));
            this.AddConverter("addip", typeof(addipPatternConverter));
            this.AddConverter("remark", typeof(remarkPatternConverter));
        }
    }

    public class platNameLayout : log4net.Layout.PatternLayout
    {
        public platNameLayout()
        {
            this.AddConverter("platName", typeof(platNamePatternConverter));
        }
    }

    public class moduleLayout : log4net.Layout.PatternLayout
    {
        public moduleLayout()
        {
            this.AddConverter("module", typeof(modulePatternConverter));
        }
    }

    public class operatingLayout : log4net.Layout.PatternLayout
    {
        public operatingLayout()
        {
            this.AddConverter("operating", typeof(operatingPatternConverter));
        }
    }

    public class flgValueLayout : log4net.Layout.PatternLayout
    {
        public flgValueLayout()
        {
            this.AddConverter("flgValue", typeof(flgValuePatternConverter));
        }
    }

    public class addipLayout : log4net.Layout.PatternLayout
    {
        public addipLayout()
        {
            this.AddConverter("addip", typeof(addipPatternConverter));
        }
    }

    public class remarkLayout : log4net.Layout.PatternLayout
    {
        public remarkLayout()
        {
            this.AddConverter("remark", typeof(remarkPatternConverter));
        }
    }
}